using UnityEngine;

[ExecuteInEditMode]
public class PresetsCameraView : MonoBehaviour
{
	private ControllerCameraView controller;

	public CameraHorizontalFollowMode viewType;

	private void LateUpdate()
	{
		if (Application.isEditor && !Application.isPlaying)
		{
			if (controller == null)
			{
				controller = base.gameObject.GetComponent<RemoteControl>().controller.GetComponent<ControllerCameraView>();
				viewType = controller.viewType;
			}
			SetValues();
		}
	}

	public void SetValues()
	{
		if (controller != null)
		{
			controller.viewType = viewType;
		}
	}
}
